package com.zsl.swing.redis.desktop.window.builder;

import com.zsl.swing.redis.desktop.type.RedisTypeEnum;

import javax.swing.*;

public class RedisTypeComboBoxBuilder {

    private RedisTypeComboBoxBuilder() {
    }

    public static JComboBox<String> getInstance() {
        JComboBox<String> comboBox = new JComboBox<>();
        comboBox.addItem(RedisTypeEnum.STRING.getType());
        comboBox.addItem(RedisTypeEnum.HASH.getType());
        comboBox.addItem(RedisTypeEnum.LIST.getType());
        comboBox.addItem(RedisTypeEnum.SET.getType());
        comboBox.addItem(RedisTypeEnum.ZSET.getType());

        return comboBox;
    }
}
